package com.zzy.netty.learn.demo.future_callback;

import com.zzy.netty.learn.demo.future_callback.listener.ConnectHandleListener;
import com.zzy.netty.learn.demo.future_callback.listener.ReadHandleListener;
import com.zzy.netty.learn.demo.future_callback.listener.WriteHandleListener;

public class TestMain {

	public static void main(String[] args) {
		
		FutureCallBackTask task = new FutureCallBackTask();
		
		task.reg(1, new ConnectHandleListener());
		
		task.reg(2, new ReadHandleListener());
		
		task.reg(3, new WriteHandleListener());
		
		new Thread(task).start();

	}

}
